from django.shortcuts import render
from django.http import HttpRequest, HttpResponse
from django.template.loader import get_template
from django.template.backends.django import Template
import datetime
# Create your views here.


def test_index(request):
    mydict = {
        'a':100,
        'b':0,
        'c':list(range(10,20)),
        'd':'abc',
        'date':datetime.datetime.now(),
        'range10':range(10),
        'range9':range(1,10),
    }
    # context = {'test':'www.magedu.com', 'mydict':mydict}
    context = {'mydict': mydict}
    return render(request, 'index.html', context)





